package com.hmall.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hmall.order.mapper.OrderDetailMapper;
import com.hmall.order.pojo.OrderDetail;
import com.hmall.order.service.IOrderDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderDetailImpl extends ServiceImpl<OrderDetailMapper, com.hmall.order.pojo.OrderDetail> implements IOrderDetail {
    @Autowired
    public OrderDetailMapper orderDetailMapper;


    @Override
    public String InsertOrderDetail(OrderDetail orderDetail) {
        int insert = orderDetailMapper.insert(orderDetail);
        return insert==0?"失败":"成功";
    }
}
